// 处理颜色
export function nodeColorSolve(node) {
  if ('country' === node.type) {
    node.style = {
      fill: '#0a7ac5',
      stroke: '#0a7ac5'
    }
    node.labelCfg = {
      style: {
        fill: '#ffffff',
        fontSize: 24,
      }
    }
  }
  if ('structure' === node.type) {
    node.style = {
      fill: '#d87900',
      stroke: '#d87900'
    }
    node.labelCfg = {
      style: {
        fill: '#ffffff',
        fontSize: 14,
      }
    }
  }
  if ('event' === node.type) {
    node.style = {
      fill: '#c26a37',
      stroke: '#c26a37'
    }
  }
  if ('location' === node.type) {
    node.style = {
      fill: '#9b4778',
      stroke: '#9b4778'
    }
  }
  if ('weaponry' === node.type) {
    node.style = {
      fill: '#0a7ac5',
      stroke: '#0a7ac5'
    }
  }
}